<?php

/**
 * Commentaire form.
 *
 * @package    appcemhti
 * @subpackage form
 * @author     Steve Cancès
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class CommentaireForm extends BaseCommentaireForm
{
    public function configure()
    {
        unset(
            $this['id_lot'],
            $this['id_echantillon'],
            $this['id_traitement'],
            $this['id_mesure'],
            $this['visible'],
            $this['id_user'],
            $this['created_at'],
            $this['updated_at']
        );
        $this->widgetSchema['contenu'] = new sfWidgetFormTextareaTinyMCE(array(
            //'config' => 'theme_advanced_disable: "anchor,image,cleanup,help"'
            'config' => 'theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,undo,redo", theme_advanced_buttons2 : "", theme_advanced_buttons3 : ""',
            
        ));
        $this->widgetSchema['contenu']->setLabel("Commentaire");
    }
}
